<?php
if ($gather_type == 6 && preg_match("/www\.toutiao\.com/Uisx", $this->url, $nn)&&1==0) {
    $url = $this->url;
    $c = $GLOBALS['mycurl']->result("", $this->url);
    parse_str(parse_url($url)['query'], $params);
    $gzh = $params['query'];
    $cs = 0;

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "https://www.toutiao.com/c/user/article/?page_type=1&user_id=5757091251&max_behot_time=0&count=20&as=A155DDEC2182B7D&cp=5DC1B25BE7DD6E1&_signature=Qbx4gRAZHH-my4CHi2srE0G8eJ");
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36");
    curl_setopt($ch, CURLOPT_REFERER, "https://www.toutiao.com/c/user/5757091251/");
    curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept-Language:  en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7"));
    //curl_setopt($ch, CURLOPT_COOKIE,"JSESSIONID=GOnI36mveGsqjgWMPCPlOg");
    curl_setopt($ch, CURLOPT_COOKIE, $c->cookie);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, "false");
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, "2");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION,0);
    curl_setopt($ch, CURLOPT_VERBOSE,1);
    //curl_setopt($ch, CURLOPT_HTTPHEADER, array("Host:  www.toutiao.com","Connection:  keep-alive","Accept:  application/json, text/javascript","X-Requested-With:  XMLHttpRequest","Content-Type:  application/x-www-form-urlencoded","Accept-Language:  en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7"));
    curl_setopt($ch, CURLOPT_HTTPHEADER, array("Host:{$c->qhost}", "Connection:  keep-alive", "Accept:  text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "Accept-Language:  en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7,ja;q=0.6,bg;q=0.5"));
    curl_setopt($ch, CURLOPT_HEADER, 1);
    curl_setopt($ch, CURLOPT_TIMEOUT, 60);
    $result = curl_exec($ch);
    curl_close($ch);
    $c->result($result, $url);
    $pagehtml = $c->body;


}